import 'package:json_annotation/json_annotation.dart';
import 'history_item.dart';

part 'history_list_response.g.dart';

@JsonSerializable()
class HistoryListResponse {
  final int count;
  final List<HistoryItem> list;

  HistoryListResponse({
    required this.count,
    required this.list,
  });

  factory HistoryListResponse.fromJson(Map<String, dynamic> json) =>
      _$HistoryListResponseFromJson(json);

  Map<String, dynamic> toJson() => _$HistoryListResponseToJson(this);
}